/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.rmi;

import java.rmi.Naming;

/**
 *
 * @author jfdenise
 */
public class Server_App {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        String codebase = "http://localhost:8080/RMI_Web/RMI_Server-1.0-SNAPSHOT.jar http://localhost:8080/RMI_Web/RMI_Libs-1.0-SNAPSHOT.jar";
        System.setProperty( "java.rmi.server.codebase", codebase );
        

        try {        
            ServerImpl obj_ServerImpl = new ServerImpl();
            
            Naming.rebind("//localhost/Server", obj_ServerImpl);
            System.out.println("Server bound in registry");
            
        } catch (Exception e) {
            System.out.println("Server err: " + e.getMessage());
            e.printStackTrace();
        }
    }
}
